@tool
@icon("../icons/any_of_guard.svg")
class_name AnyOfGuard
extends Guard

# 条件至少满足一个才允许触发
@export var guards:Array[Guard] = []

func is_satisfied(transition:Transition,state:State) -> bool:
	for guard in guards:
		if guard.is_satisfied(transition,state):
			return true
	return false
